package net.wofly.sale.order.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.wofly.sale.commodity.domain.Commodity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 退回礼品
 *
 * @author lign
 * @version 1.0
 * @created 06-5月-2018 11:58:48
 */
@Data
@Entity
@Table(name = "sale_order_returngift")
@ApiModel(description = "退回礼品")
public class ReturnGift {
    @Id
    private String returnGiftID;
    
    /**
     * 退货赠品的终端商品ID
     */
    private String commodityTerminalID;
    /**
     * 被退货订单中商品的赠品ID
     */
    private String giftID;
    private Long modifyDate;
    @ApiModelProperty(value = "最大的可退回数量（原订单的赠品数量）")
    private Integer maxReturnNum;
    private Integer num;
    private String returnSalesContentID;
    private String returnSalesID;
    
    @Transient
    Commodity commodity;
    
    public ReturnGift() {
    
    }
    
    @Override
    public void finalize() throws Throwable {
    
    }
}